package com.gdteam.kernel.timer;

import com.gdteam.kernel.Service;

public interface TimerManager extends Service {

     String FQN = "com.gdteam.kernel.timer";
     
    /**
     * Add timer job
     * @param job
     * @throws IllegalStateException when timer manager is not started
     */
     void addTimerJob(TimerJob job) throws IllegalStateException;
    
    /**
     * Remove timer job
     * @param job
     */
     void removeTimerJob(TimerJob job);
    
    
    /**
     * Get timer job from id
     * @param id timer job id
     * @return timer job
     */
     TimerJob getTimerJob(String id);
    
}
